<?php
/**
 * @version		$Id: default.php 7 2011-12-22 13:48:09Z netix.mail@gmail.com $
 * @package		ALM Hoster
 * @desription	Web hosting and domain menager for resellers
 * @subpackage	Components
 * @copyright	Copyright (C) 2011 ALM Studio. All rights reserved.
 * @author		ALM Studio
 * @email		info@alm-studio.net
 * @link		http://alm-studio.net
 * @license		Commercial
 */
 
// No direct access to this file
defined('_JEXEC') or die('Restricted Access');
JHtml::_('behavior.tooltip');
$app = JFactory::getApplication();
$template	= $app->getTemplate();
?>		
	<div class="width-60 fltlft">
		<div id="cpanel">
			<?php						
				$link = 'index.php?option=com_almhoster&view=orders';
				almhosterCpanelIkone($link, 'orders-48.png', JText::_('COM_ALMHOSTER_SUBMENU_ORDERS'));
					
				$link = 'index.php?option=com_almhoster&view=invoices';
				almhosterCpanelIkone($link, 'invoices-48.png', JText::_('COM_ALMHOSTER_SUBMENU_INVOICES'));
										
				$link = 'index.php?option=com_almhoster&view=clients';
				almhosterCpanelIkone($link, 'clients-48.png', JText::_('COM_ALMHOSTER_SUBMENU_CLIENTS'));
			
				$link = 'index.php?option=com_almhoster&view=products';
				almhosterCpanelIkone($link, 'products-48.png', JText::_('COM_ALMHOSTER_SUBMENU_PRODUCTS'));		
				
				$link = 'index.php?option=com_almhoster&view=prices';
				almhosterCpanelIkone($link, 'prices-48.png', JText::_('COM_ALMHOSTER_SUBMENU_PRICES'));
				
				$link = 'index.php?option=com_almhoster&view=billingcycles';
				almhosterCpanelIkone($link, 'billing_cycles-48.png', JText::_('COM_ALMHOSTER_SUBMENU_BILLING_CYCLES'));
				
				$link = 'index.php?option=com_almhoster&view=servers';
				almhosterCpanelIkone($link, 'servers-48x48.png', JText::_('COM_ALMHOSTER_SUBMENU_SERVERS'));
				
				$link = 'index.php?option=com_almhoster&view=hosting_accs';
				almhosterCpanelIkone($link, 'cpanel-48.png', JText::_('COM_ALMHOSTER_SUBMENU_HOSTING_ACCOUNTS'));
				
				$link = 'index.php?option=com_almhoster&view=hosting_plans';
				almhosterCpanelIkone($link, 'plans-48.png', JText::_('COM_ALMHOSTER_SUBMENU_HOSTING_PLANS'));								
				
				$link = 'index.php?option=com_almhoster&view=tlds';
				almhosterCpanelIkone($link, 'domains-48.png', JText::_('COM_ALMHOSTER_SUBMENU_TLDS'));
				
				$link = 'index.php?option=com_almhoster&view=coupons';
				almhosterCpanelIkone($link, 'coupons-48.png', JText::_('COM_ALMHOSTER_SUBMENU_COUPONS'));
				
				$link = 'index.php?option=com_almhoster&view=email_tmpls';
				almhosterCpanelIkone($link, 'emails-48.png', JText::_('COM_ALMHOSTER_SUBMENU_EMAIL_TEMPLATES'));

				$class = 'modal';
				$link = 'index.php?option=com_config&view=component&component=com_almhoster&path=&tmpl=component';
				almhosterCpanelPopup($class, $link, 'configurations-48x48.png', JText::_('COM_ALMHOSTER_SUBMENU_CONFIGURATIONS'));
			?>
		</div>
	</div>
	<div class="width-40 fltrt">	
		<?php echo JHtml::_('sliders.start','orders-sliders', array('useCookie'=>1)); ?>
		<?php echo JHtml::_('sliders.panel',JText::_('COM_ALMHOSTER_BILLING_INFORMATIONS'), 'orders-sliders'); ?>
			<fieldset class="panelform">
				<div id="slide_lft">
					<div id="slide_naslov">
						<?php echo JText::_('COM_ALMHOSTER_INVOICES_INFO')?>
					</div>	
					<div id="slide_info">
						<ul>
						<?php foreach( $this->invoices as $i => $invoice ): ?>
							<li>
								<?php echo JText::_('COM_ALMHOSTER_INVOICES_STATUS_'.$invoice->InvoiceStatus); ?>
								<?php echo $invoice->ukupno; ?>
							</li>
						<?php endforeach; ?>
						</ul>
					</div>		
				</div>
				<div id="slide_rgt">
					<div id="slide_naslov">
						<?php echo JText::_('COM_ALMHOSTER_ORDERS_INFO')?>
					</div>	
					<div id="slide_info">
						<ul>
						<?php foreach( $this->orders as $i => $order ): ?>
							<li>
								<?php echo JText::_('COM_ALMHOSTER_ORDERS_STATUS_'.$order->OrderStatus); ?>
								<?php echo $order->total; ?>
							</li>
						<?php endforeach; ?>
						</ul>
					</div>		
				</div>
			</fieldset>		
		<?php echo JHtml::_('sliders.panel',JText::_('Statusi servisa'), ''); ?>
			<fieldset class="panelform">
				<table class="admitable">
					<thead>
						<tr>
							<th>
								<?php echo JText::_('COM_ALMHOSTER_SERVER_NAME'); ?>
							</th>
							<th>
								<?php echo JText::_('COM_ALMHOSTER_SERVER_STATUS'); ?>
							</th>
							<th>
								<?php echo JText::_('COM_ALMHOSTER_SERVER_APACHE'); ?>
							</th>
							<th>
								<?php echo JText::_('COM_ALMHOSTER_SERVER_MYSQL'); ?>
							</th>				
							<th>
								<?php echo JText::_('COM_ALMHOSTER_SERVER_FTP'); ?>
							</th>
						</tr>
					</thead>
					<tbody>
						<tr>
							<td>
								<?php echo $this->services->result->status; ?>
							</td>
							<td>
								<?php echo $this->services->result->status; ?>
							</td>
						</tr>
					</tbody>
				</table>

			</fieldset>
		<?php echo JHtml::_('sliders.end'); ?>
	</div>
	<div>
		<input type="hidden" name="task" value="" />
		<input type="hidden" name="boxchecked" value="0" />
		<?php echo JHtml::_('form.token'); ?>
	</div>
